local js_yanhuo = fk.CreateSkill {
  name = "js__yanhuo",
}

js_yanhuo:addEffect(fk.Death, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(self, false, true)
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(player,{skill_name=self.name,prompt="#yanhuo-invoke"})
  end,
  on_use = function(self, event, target, player, data)
    player.room:setTag("yanhuo", true)
  end,
})
js_yanhuo:addEffect(fk.PreCardUse, {
  can_refresh = function(self, event, target, player, data)
    return target == player and player.room:getTag("yanhuo") and data.card.trueName == "slash"
  end,
  on_refresh = function(self, event, target, player, data)
    data.additionalDamage = (data.additionalDamage or 0) + 1
  end,
})
return js_yanhuo